// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App';
import router from './router/index';
// import axios from 'axios';

Vue.config.productionTip = false

Vue.use(ElementUI);

// 全局挂载axios
// Vue.prototype.$axios = axios;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // axios,
  components: { App },
  template: '<App/>'
})

// 若本地项目调试使用
// 配置后端端口的访问地址
axios.defaults.baseURL = 'http://localhost:8082'
